import request from '@/utils/request'

// 查询读结算历史列表
export function listReading_settlement_history(query) {
  return request({
    url: '/system/reading_settlement_history/list',
    method: 'get',
    params: query
  })
}

export function monthList(query) {
  return request({
    url: '/system/reading_settlement_history/monthList',
    method: 'get',
    params: query
  })
}
// 查询读结算历史详细
export function getReading_settlement_history(id) {
  return request({
    url: '/system/reading_settlement_history/' + id,
    method: 'get'
  })
}

// 新增读结算历史
export function addReading_settlement_history(data) {
  return request({
    url: '/system/reading_settlement_history',
    method: 'post',
    data: data
  })
}

// 修改读结算历史
export function updateReading_settlement_history(data) {
  return request({
    url: '/system/reading_settlement_history',
    method: 'put',
    data: data
  })
}

// 删除读结算历史
export function delReading_settlement_history(id) {
  return request({
    url: '/system/reading_settlement_history/' + id,
    method: 'delete'
  })
}
